<?php
require_once(__DIR__.'/../core/globalFunctions.php');
require_once(__DIR__.'/../core/eventSubscriber.php');

// This is an example module. It has the ability to say "Hi" and "Hello". 
class TestModule extends EventSubscriber {
	function __construct ($name) {
		// Define events that the module is interested in.
		$this->subscriptions = array("pageHead", "sayHello");
		
		parent::__construct($name);
	}

	function handleEventCallback ($event) {
		// Define responses to event callbacks.
		switch ($event) {
			case "sayHi":
				echo "Hi.";
				break;
			case "sayHello":
				echo "Hello. ";
				break;
		}
	}
}
?>